-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix heredoc comma issue #65
Fix heredoc comma issue #65
Conversation
Why: when trailing commas are wanted we put them into the wrong place for heredocs.
Why: So that trailing comma config is respected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! 💚
I have left one comment, though 😃
# This is needed so that we can add a comma if one is not already present. | ||
captured_output = capture_output { next_token } | ||
|
||
inside_literal_elements_list = !@literal_elements_level.nil? && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we initialize @literal_elements_level
in the initialize
method similar to @node_level
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I have fixed this up.
Any other thoughts on this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thank you 💚
Fixes #61.